<template>
    <div>
        <div>demo  -----{{money}}</div>
        <button @click="fn">修改</button>
    </div>
</template>

<script>
export default {
    name: 'Demo',
    props: {
        visable: {
            type: Boolean,
            default: false
        },
        money: null
    },
    methods: {
     fn() {
        this.$emit('update:money', 200)
     }
    }
}
</script>

<style lang="scss" scoped>

</style>
